<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:pcc="http://java.sun.com/jsf/composite/pcc"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component">

<!--     <ice:form id="tipoNodoDataListForm"> -->
    	<h:commandLink value="#{messages['label.addNodo']}" action="${fcNodo.openPopupNodoForm}" visible="#{fcTabsNodo.tabbedNodoVisible}" rendered="${not fcNodo.visibleNodoForm}" immediate="true"/>
    	
    	<ice:dataTable id="nodoDataList"
                       rows="#{serviquality['app.sizeList']}"
                       value="#{fcNodo.nodos.source}"
                       var="nodo"
                       sortColumn="#{fcNodo.nodos.sortColumnName}"
                       sortAscending="#{fcNodo.nodos.ascending}"
                       visible="#{fcTabsNodo.tabbedNodoVisible}">
            <ice:column>
				<ice:rowSelector id="selected"
					value="#{nodo.selected}"
				    multiple="false"
				    enhancedMultiple="false"                                 
				    selectionListener="#{fcNodo.selectedNodo}"
				    />
                <f:facet name="header">
                    <ice:commandSortHeader columnName="nodoPK.codigo" arrow="true">
                        <ice:outputText value="#{serviquality['nodo.codigo']}" />
                    </ice:commandSortHeader>
                </f:facet>
                <ice:outputText value="#{nodo.nodoPK.codigo}" />                
            </ice:column>
            <ice:column>
                <f:facet name="header">
                    <ice:commandSortHeader columnName="nombre" arrow="true">
                        <ice:outputText value="#{serviquality['nodo.nombre']}" />
                    </ice:commandSortHeader>
                </f:facet>
                <ice:outputText value="#{nodo.nombre}" />
            </ice:column>
            <ice:column>
                <f:facet name="header">
                    <ice:commandSortHeader columnName="tipoNodo.nombre" arrow="true">
                        <ice:outputText value="#{serviquality['tipoNodo']}" />
                    </ice:commandSortHeader>                   
                </f:facet>
                <ice:outputText value="#{nodo.nodoPK.tipoNodo.nombre}" />
            </ice:column>
            <ice:column>
                <f:facet name="header">
                    <ice:commandSortHeader columnName="estadoRegistro.descripcion" arrow="true">
                        <ice:outputText value="#{serviquality['nodo.estadoRegistro']}" />
                    </ice:commandSortHeader>                    
                </f:facet>
                <ice:outputText value="#{nodo.estadoRegistro.descripcion}" />
            </ice:column>           
        </ice:dataTable>
        <h:panelGroup layout="block" styleClass="iceWrapperPgr">
            <ice:dataPaginator id="paginatorNodo"
                               for="nodoDataList"
                               paginator="true"
                               fastStep="#{serviquality['app.fastStepList']}"
                               paginatorMaxPages="#{serviquality['app.maxPagesList']}"
                               visible="#{fcTabsNodo.tabbedNodoVisible}">
                <f:facet name="first">
                    <ice:graphicImage url="#{facesContext.externalContext.requestContextPath}/themes/images/lista/iconArrowF.gif" style="border:none;" title="#{serviquality['paginador.first']}"></ice:graphicImage>
                </f:facet>
                <f:facet name="last">
                    <ice:graphicImage url="#{facesContext.externalContext.requestContextPath}/themes/images/lista/iconArrowLast.gif" style="border:none;" title="#{serviquality['paginador.last']}"></ice:graphicImage>
                </f:facet>
                <f:facet name="previous">
                    <ice:graphicImage url="#{facesContext.externalContext.requestContextPath}/themes/images/lista/iconArrowPrevious.gif" style="border:none;" title="#{serviquality['paginador.previous']}"></ice:graphicImage>
                </f:facet>
                <f:facet name="next">
                    <ice:graphicImage url="#{facesContext.externalContext.requestContextPath}/themes/images/lista/iconArrowNext.gif" style="border:none;" title="#{serviquality['paginador.next']}"></ice:graphicImage>
                </f:facet>
            </ice:dataPaginator>
            <ice:dataPaginator id="paginatorDescNodo"
                               for="nodoDataList"
                               paginator="true"
                               rowsCountVar="rowsCount"
                               displayedRowsCountVar="displayedRowsCount"
                               firstRowIndexVar="firstRowIndex"
                               lastRowIndexVar="lastRowIndex"
                               pageCountVar="pageCount"
                               pageIndexVar="pageIndex"
                               visible="#{fcTabsNodo.tabbedNodoVisible}">
                <ice:outputFormat styleClass="standard" value="#{serviquality['paginador.summary']}">
                    <f:param value="#{rowsCount}"/>
                    <f:param value="#{displayedRowsCount}"/>
                    <f:param value="#{firstRowIndex}"/>
                    <f:param value="#{lastRowIndex}"/>
                    <f:param value="#{pageIndex}"/>
                    <f:param value="#{pageCount}"/>
                </ice:outputFormat>
            </ice:dataPaginator>
        </h:panelGroup>
        <div class="messageWrapper">
			<ice:messages globalOnly="true" layout="table"/>
		</div>
<!--     </ice:form> -->
</ui:composition>